/**

 * @author *琴
 * @mailbox 1570149578@qq.com
 * @company  四川英瑞世博电子商务有限公司
 * @date 2020-06-08 14:10
 * @http  https://********

 */
export default {
  data () {
    return {
    }
  },

  computed: {
    // 已选规格
    specsName () {
      return (skuName) => {
        if (typeof skuName === 'string') {
          skuName = JSON.parse(skuName)
        }
        let str = []
        skuName.forEach((item) => {
          str.push(item.value)
          return str
        })
        return str.join(', ')
      }
    }
  }
}
